package com.xca.is.service;

import com.xca.is.entity.Translation;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

//https://translate.appworlds.cn?text=This is a test text&from=en&to=zh-CN

//https://findmyip.net/api/translate.php?text=%E4%B8%8B%E9%9D%A2%E8%BF%99%E5%8F%A5%E8%AF%9D%E5%B0%86%E7%BF%BB%E8%AF%91%E6%88%90%E8%B6%8A%E5%8D%97%E8%AF%AD&target_lang=vi

public interface TranslateService {
    @GET("translate.php")
    Observable<Translation> getData(@Query("text") String text , @Query("source_lang") String from , @Query("target_lang") String to);
}
